package com.game.caro.data;

import java.util.HashMap;

import org.apache.mina.core.session.IoSession;

public class PlayTable 
{	
	/**
	 * tableStatus=0->Ban khong dang choi.
	 * tableStatus=1->Ban dang choi.
	 */
	private int tableStatus;
	private int tableID;
	
	
	/** Mang luu cac ket noi da tham gia vao ban *///co le ko nen lam the nay
	public HashMap<Long, Player> players = new HashMap<Long, Player>();
	PlayTable()
	{
		
	}
	//gio can tao 1 contructor playtable khoi tao chua session
	public int getTableStatus() 
	{
		return tableStatus;
	}
	public void setTableStatus(int tableStatus) {
		this.tableStatus = tableStatus;
	}
	public int getTableID() {
		return tableID;
	}
	public void setTableID(int tableID) {
		this.tableID = tableID;
	}
	
	public HashMap<Long, Player> getPlayers() {
		return players;
	}
	
	/**
	 * 
	 */
	public void removePlayer(Player player)//co ham nay rui day
	{
		this.players.remove(player.getIoSession().getId());
	
	}
	
	
	
	
	/**
	 * 
	 */

	//hay de mai lam gi
	//e buon ngu lam rui
	//huuu uh, bb
	//hay chi cu lam di
	//khong lam nua tat may cho em.ok?thoi, ko lam thi thoi, to lam mot minh ko co hung, 
//ok.hn met qua.bbnhau nhet o dau the
	//ko phai nhau nhet.hom nay dua dua ban di choi.di bo nhieu met!~
	//dua ban di choi ma chang bao gio chiu cho chi v di choi ca, chan e
	//no o trong mien nam ra.hix
	//ghet so sanh
	 
	
	
}
